import java.lang.reflect.Array;
public class arrBegnEven 
{       public static void main(String[] args) 
 {
		int a [] = {7, 30, 41, 7, 4, 67, 90, 1};
		
		int x=0;
        int b [] = new int [a.length];
        for ( int i=0; i<a.length; i++)
        {
        	if (a[i]%2==0)
        	{	
        	b[x]=a[i];
        	x++;
        	}
        	
        		
        }
        for (int i=0; i<a.length; i++)
		{
			System.out.println(b[i]);
		}
	}

}
